package com.gz.mapper;

import com.gz.entity.City;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CityMapper {
    
    @Select("select * from city where parent_id = #{parentId}")
    List<City> selectByParentId(@Param("parentId") String parentId);
    
}
